package com.mashibing.mall.product.feign;

import com.mashibing.common.dto.SkuReductionDTO;
import com.mashibing.common.dto.SpuBoundsDTO;
import com.mashibing.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 远程调用优惠券服务
 */
@FeignClient("coupon")
public interface CouponFeignService {

    /**
     * 商品满减信息 - 保存 sku 促销信息
     */
    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReductionInfo(@RequestBody SkuReductionDTO skuReductionTo);

    /**
     * 商品spu积分设置 - 保存
     */
    @PostMapping("/coupon/spubounds/saveSpuBounds")
        //@RequiresPermissions("coupon:spubounds:save")
    R saveSpuBounds(@RequestBody SpuBoundsDTO spuBounds);
}
